<?php

/**
 * Cadacessopermissoes form.
 *
 * @package    SCBE
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class CadacessopermissoesForm extends BaseCadacessopermissoesForm
{
  public function configure()
  {
      //Deixa o campo escondido
      $this->widgetSchema['idacessopermissoes'] = new sfWidgetFormInputHidden();
      
      //Usuário
      $this->widgetSchema['idusuario'] = new sfWidgetFormChoice(array(
        'choices'  => Doctrine::getTable('Cadusuarios')->getUsuario(),
        'multiple' => false,
        'expanded' => false,
      ));
      $this->widgetSchema['idusuario']->setLabel('Usuário');
      
      //Permissão
      $this->widgetSchema['idpermissao'] = new sfWidgetFormChoice(array(
        'choices'  => Doctrine::getTable('Cadpermissao')->getPermissao(),
        'multiple' => false,
        'expanded' => false,
      ));
      $this->widgetSchema['idpermissao']->setLabel('Permissão');
  }
}
